/**
 * WHALES — Institutional Cinematic Hero Stylesheet (V2 Art Direction)
 * Scope: Homepage Hero Section & Floating Atmospheric Navbar Only
 * Visual Target: Luxury Editorial + Cinematic Ocean Terminal
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Rajdhani:wght@500;600;700&family=Tajawal:wght@500;700;800&display=swap');

:root {
    --whales-container-max: 1440px;
    --whales-container-padding: clamp(24px, 4vw, 48px);
    --whales-page-gutter: clamp(24px, 4vw, 48px);
}

@media (min-width: 1921px) {
    :root {
        --whales-container-max: 1680px;
        --whales-container-padding: clamp(48px, 5vw, 96px);
        --whales-page-gutter: clamp(48px, 5vw, 96px);
    }
}

@media (max-width: 1024px) {
    :root {
        --whales-container-max: 100%;
        --whales-container-padding: 32px;
        --whales-page-gutter: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --whales-container-max: 100%;
        --whales-container-padding: 20px;
        --whales-page-gutter: 20px;
    }
}

/* ==========================================================================
   1. FLOATING ATMOSPHERIC NAVBAR (TRANSPARENT & ORIGINAL POSITION)
   ========================================================================== */
body.landing .topbar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: var(--whales-container-max) !important;
    padding-inline: var(--whales-container-padding) !important;
    margin-inline: auto !important;
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(0, 229, 255, 0.08) !important;
    box-shadow: none !important;
    z-index: 50 !important;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

/* Brand Logo Left Rail */
body.landing .topbar .brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    justify-self: start !important;
    flex-shrink: 0 !important;
}

body.landing .topbar .brand img {
    width: 36px !important;
    height: 50px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.35)) !important;
}

body.landing .topbar .brand > span {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: 0.14em !important;
    color: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.1 !important;
}

body.landing .topbar .brand small {
    font-family: monospace !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2em !important;
    color: rgba(0, 229, 255, 0.8) !important;
    margin-top: 2px !important;
}

/* Navigation Links (Mathematically Centered in Viewport) */
body.landing .topbar .landing-nav {
    display: flex !important;
    align-items: center !important;
    gap: clamp(18px, 2.2vw, 36px) !important;
    justify-self: center !important;
    margin: 0 !important;
}

body.landing .topbar .landing-nav a {
    position: relative !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(226, 241, 255, 0.72) !important;
    text-decoration: none !important;
    padding-block: 8px !important;
    transition: color 0.2s ease !important;
}

body.landing .topbar .landing-nav a:hover {
    color: #ffffff !important;
}

body.landing .topbar .landing-nav a[aria-current="page"] {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

body.landing .topbar .landing-nav a[aria-current="page"]::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: #00e5ff !important;
    border-radius: 2px !important;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.6) !important;
}

/* Top Actions Right Rail */
body.landing .topbar .top-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    justify-self: end !important;
    flex-shrink: 0 !important;
}

/* Compact Professional Language Selector Dropdown */
.lang-selector-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

body.landing .topbar .lang-select-btn,
.lang-selector-dropdown .lang-select-btn,
.lang-select-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 82px !important;
    max-width: none !important;
    inline-size: auto !important;
    min-inline-size: 82px !important;
    max-inline-size: none !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 14px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: rgba(240, 246, 255, 0.9) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    transition: all 0.22s ease !important;
}

body.landing .topbar .lang-select-btn:hover,
.lang-selector-dropdown .lang-select-btn:hover {
    color: #00e5ff !important;
    border-color: rgba(0, 229, 255, 0.45) !important;
    background: rgba(0, 229, 255, 0.06) !important;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.15) !important;
}

body.landing .topbar .lang-select-btn .lang-globe,
.lang-selector-dropdown .lang-select-btn .lang-globe {
    font-size: 13px !important;
    width: 14px !important;
    height: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    opacity: 0.75 !important;
    color: currentColor !important;
    margin: 0 !important;
    transition: transform 0.2s ease !important;
}

body.landing .topbar .lang-select-btn:hover .lang-globe,
.lang-selector-dropdown .lang-select-btn:hover .lang-globe {
    opacity: 1 !important;
    transform: rotate(15deg);
}

body.landing .topbar .lang-select-btn .lang-text,
.lang-selector-dropdown .lang-select-btn .lang-text {
    line-height: 1 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: currentColor !important;
    flex-shrink: 0 !important;
}

body.landing .topbar .lang-select-btn .lang-chevron,
.lang-selector-dropdown .lang-select-btn .lang-chevron {
    font-size: 9px !important;
    width: 9px !important;
    height: 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    opacity: 0.65 !important;
    transition: transform 0.25s ease !important;
    margin-top: 1px !important;
}

.lang-selector-dropdown.is-open .lang-select-btn {
    border-color: #00e5ff !important;
    background: rgba(0, 229, 255, 0.08) !important;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.25) !important;
}

.lang-selector-dropdown.is-open .lang-chevron {
    transform: rotate(180deg) !important;
    opacity: 1 !important;
    color: #00e5ff !important;
}

/* Dropdown Menu Panel */
.lang-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    min-width: 130px !important;
    background: rgba(3, 12, 26, 0.96) !important;
    border: 1px solid rgba(0, 229, 255, 0.25) !important;
    border-radius: 8px !important;
    padding: 6px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 229, 255, 0.12) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    display: none !important;
    flex-direction: column !important;
    gap: 2px !important;
    z-index: 100 !important;
}

[dir="rtl"] .lang-dropdown-menu,
.rtl .lang-dropdown-menu {
    right: auto !important;
    left: 0 !important;
}

.lang-selector-dropdown.is-open .lang-dropdown-menu {
    display: flex !important;
    animation: langDropFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes langDropFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-menu-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 10px !important;
    border-radius: 5px !important;
    color: rgba(226, 241, 255, 0.8) !important;
    text-decoration: none !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
}

.lang-menu-item:hover {
    background: rgba(0, 229, 255, 0.1) !important;
    color: #ffffff !important;
}

.lang-menu-item.is-active {
    background: rgba(0, 229, 255, 0.14) !important;
    color: #00e5ff !important;
    font-weight: 600 !important;
}

.lang-menu-item .lang-code {
    font-family: monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
}

.lang-menu-item .lang-label {
    margin-inline-start: 8px !important;
    margin-inline-end: auto !important;
}

.lang-menu-item .lang-check {
    font-size: 10px !important;
    color: #00e5ff !important;
    margin-inline-start: 6px !important;
}

/* Minimal Outlined Login Button */
body.landing .topbar .login-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 16px !important;
    border-radius: 6px !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: rgba(240, 246, 255, 0.9) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

body.landing .topbar .login-link:hover {
    color: #ffffff !important;
    border-color: rgba(0, 229, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Compact Primary Cyan/Blue Button */
body.landing .topbar .get-started {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 18px !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border: 1px solid rgba(0, 229, 255, 0.35) !important;
    color: #ffffff !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3) !important;
    transition: all 0.2s ease !important;
}

body.landing .topbar .get-started:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.45) !important;
}

/* Hide desktop nav panel by default on mobile */
body.landing .topbar details.landing-menu {
    display: none !important;
}

/* ==========================================================================
   2. HERO CANVAS (Full Viewport Oceanic Immersion)
   ========================================================================== */
.hero.cinematic-hero {
    position: relative !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: none !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    background-color: #020811 !important;
    overflow: hidden !important;
    isolation: isolate !important;
    padding-top: 92px !important;
    padding-bottom: 24px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   3. DOUBLE-BUFFERED VIDEO ENGINE & ATMOSPHERIC LAYERS
   ========================================================================== */
.cinematic-video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background-color: #020811;
}

/* Layer 02: Dedicated First-Frame Poster Fallback (Zero Black Screen) */
.cinematic-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 82% center;
    opacity: 1;
    transition: opacity 0.85s ease-out;
    will-change: opacity;
    z-index: 1;
    pointer-events: none;
}

[dir="rtl"] .cinematic-poster,
.rtl .cinematic-poster {
    object-position: 25% center;
}

.cinematic-poster.is-hidden {
    opacity: 0;
}

/* Layer 03: Double-buffered video instances: Video A & Video B */
.cinematic-video.video-buffer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 82% center;
    opacity: 0;
    transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
    z-index: 2;
}

.cinematic-video.video-buffer.is-active {
    opacity: 1;
}

/* Layer 04: Layered Cinematic Overlays: Zero Crushed Blacks, Whale Highlight Preservation */
.cinematic-overlay-layers {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* 1. Localized Left Atmospheric Gradient */
.cinematic-overlay-left {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        #020811 0%,
        rgba(2, 8, 17, 0.96) 26%,
        rgba(2, 8, 17, 0.82) 42%,
        rgba(2, 8, 17, 0.32) 58%,
        transparent 72%
    );
}

[dir="rtl"] .cinematic-overlay-left,
.rtl .cinematic-overlay-left {
    background: linear-gradient(-90deg,
        #020811 0%,
        rgba(2, 8, 17, 0.96) 28%,
        rgba(2, 8, 17, 0.84) 44%,
        rgba(2, 8, 17, 0.35) 60%,
        transparent 75%
    );
}

[dir="rtl"] .cinematic-video.video-buffer,
.rtl .cinematic-video.video-buffer {
    object-position: 25% center;
}

/* 2. Soft Bottom Ambient Vignette */
.cinematic-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 130px;
    background: linear-gradient(0deg,
        #020811 0%,
        rgba(2, 8, 17, 0.6) 55%,
        transparent 100%
    );
}

/* 3. Soft Top Navbar Bleed */
.cinematic-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg,
        rgba(2, 8, 17, 0.55) 0%,
        rgba(2, 8, 17, 0.2) 60%,
        transparent 100%
    );
}

/* 4. Peripheral Vignette */
.cinematic-overlay-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 130% 110% at 50% 50%,
        transparent 65%,
        rgba(1, 6, 14, 0.45) 100%
    );
}

/* ==========================================================================
   4. HERO STAGE & EDITORIAL HIERARCHY
   ========================================================================== */
.hero-stage {
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100% !important;
    max-width: var(--whales-container-max) !important;
    padding-inline: var(--whales-container-padding) !important;
    margin-inline: auto !important;
    margin-top: auto;
    margin-bottom: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    box-sizing: border-box !important;
}

/* Left Content Column (Strict Max Width 500-580px) */
.hero-content-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 580px;
    gap: 14px;
}

[dir="rtl"] .hero-content-col,
.rtl .hero-content-col {
    align-items: flex-start;
}

/* Eyebrow: Editorial Section Marker (Not a Badge / Pill) */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.68);
    margin: 0;
    background: transparent;
    border: none;
    padding: 0;
}

.eyebrow-slash {
    color: #00e5ff;
    font-weight: 700;
    opacity: 0.9;
}

/* Main Display Headline (Controlled Modern Institutional Display) */
body.landing .hero.cinematic-hero .hero-title {
    margin: 0 !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: clamp(32px, 3.2vw, 52px) !important;
    font-weight: 800 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.01em !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    display: flex !important;
    flex-direction: column !important;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8) !important;
}

body.landing[dir="rtl"] .hero.cinematic-hero .hero-title,
[dir="rtl"] body.landing .hero.cinematic-hero .hero-title,
.rtl body.landing .hero.cinematic-hero .hero-title {
    font-family: 'Tajawal', sans-serif !important;
    letter-spacing: normal !important;
    font-weight: 800 !important;
    font-size: clamp(34px, 3.4vw, 56px) !important;
    line-height: 1.16 !important;
}

@media (min-width: 641px) {
    body.landing .hero.cinematic-hero .hero-title span {
        white-space: nowrap !important;
    }
}

/* Only PRECISION has the subtle cyan gradient accent */
.hero-title-accent {
    background: linear-gradient(135deg, #38bdf8 0%, #00e5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

/* Supporting Description */
body.landing .hero.cinematic-hero .hero-desc {
    margin: 0 !important;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
    font-size: clamp(14px, 1.05vw, 16px) !important;
    line-height: 1.68 !important;
    color: rgba(203, 213, 225, 0.7) !important;
    font-weight: 400 !important;
    max-width: 450px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
}

body.landing[dir="rtl"] .hero.cinematic-hero .hero-desc,
[dir="rtl"] body.landing .hero.cinematic-hero .hero-desc,
.rtl body.landing .hero.cinematic-hero .hero-desc {
    font-family: 'Tajawal', sans-serif !important;
    font-size: clamp(14px, 1.1vw, 16px) !important;
}

/* Actions / CTAs */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 4px;
    margin-bottom: 8px;
}

/* Primary CTA: Compact Rectangular Button */
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    min-width: 155px;
    padding: 0 22px;
    border-radius: 6px;
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%) !important;
    border: 1px solid rgba(0, 229, 255, 0.4) !important;
    color: #ffffff !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.28) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%) !important;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4) !important;
}

/* Secondary CTA: Minimal Text Action */
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent !important;
    border: none !important;
    padding: 8px 4px !important;
    color: rgba(226, 241, 255, 0.75) !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.hero-btn-secondary:hover {
    color: #00e5ff !important;
    transform: translateX(3px);
}

[dir="rtl"] .hero-btn-secondary:hover,
.rtl .hero-btn-secondary:hover {
    transform: translateX(-3px);
}

.btn-arrow {
    transition: transform 0.2s ease;
}

.hero-btn-primary:hover .btn-arrow,
.hero-btn-secondary:hover .btn-arrow {
    transform: translateX(3px);
}

[dir="rtl"] .btn-arrow,
.rtl .btn-arrow {
    transform: rotate(180deg);
}

[dir="rtl"] .hero-btn-primary:hover .btn-arrow,
.rtl .hero-btn-primary:hover .btn-arrow,
[dir="rtl"] .hero-btn-secondary:hover .btn-arrow,
.rtl .hero-btn-secondary:hover .btn-arrow {
    transform: rotate(180deg) translateX(3px);
}

/* ==========================================================================
   5. SUBTLE MARKET INTELLIGENCE SYSTEM (Flat Ticker + Inline Metadata)
   ========================================================================== */
.hero-market-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 470px;
    padding: 10px 14px;
    background: rgba(2, 10, 22, 0.55);
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: none;
    margin-top: 4px;
    transition: border-color 0.2s ease;
}

.hero-market-panel:hover {
    border-color: rgba(0, 229, 255, 0.25);
}

/* Top Ticker Row */
.market-ticker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Asset Identity */
.ticker-identity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-gold-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.ticker-names {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.ticker-symbol {
    font-family: 'Rajdhani', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.ticker-name {
    font-family: 'Rajdhani', -apple-system, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #f59e0b;
}

/* Price & Delta Block */
.ticker-price-block {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.ticker-price {
    font-family: 'Rajdhani', monospace, sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.ticker-delta {
    font-family: 'Rajdhani', monospace, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #00e5ff;
    letter-spacing: 0.05em;
}

/* Subtle Micro-Chart */
.ticker-microchart {
    width: 86px;
    height: 24px;
    position: relative;
    overflow: hidden;
}

.microchart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Compact Timeframe Marker */
.ticker-tf-badge {
    font-family: 'Rajdhani', -apple-system, sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: rgba(226, 241, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    padding: 1px 5px;
    letter-spacing: 0.08em;
}

/* Inline Telemetry Metadata Row */
.market-telemetry-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-family: 'Rajdhani', -apple-system, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.telemetry-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.telemetry-k {
    color: rgba(226, 241, 255, 0.45);
    margin-inline-end: 4px;
}

.telemetry-v {
    color: #ffffff;
    font-weight: 700;
}

.telemetry-v.val-cyan {
    color: #00e5ff;
}

.telemetry-v.val-green {
    color: #10b981;
}

.telemetry-sep {
    color: rgba(255, 255, 255, 0.15);
    font-weight: 700;
}

/* ==========================================================================
   6. BOTTOM SUBTLE INFORMATION RAIL (No Heavy Cards)
   ========================================================================== */
.hero-bottom-rail {
    position: relative;
    z-index: 4;
    width: 100% !important;
    max-width: var(--whales-container-max) !important;
    padding-inline: var(--whales-container-padding) !important;
    margin-inline: auto !important;
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box !important;
}

.rail-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(0, 229, 255, 0.22) 0%,
        rgba(0, 229, 255, 0.06) 35%,
        rgba(255, 255, 255, 0.03) 70%,
        transparent 100%
    );
}

[dir="rtl"] .rail-line {
    background: linear-gradient(-90deg,
        rgba(0, 229, 255, 0.22) 0%,
        rgba(0, 229, 255, 0.06) 35%,
        rgba(255, 255, 255, 0.03) 70%,
        transparent 100%
    );
}

.rail-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Rajdhani', -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(226, 241, 255, 0.48);
}

.rail-item {
    transition: color 0.2s ease;
}

.rail-item:hover {
    color: #00e5ff;
}

.rail-sep {
    color: rgba(0, 229, 255, 0.3);
}

.rail-item--muted {
    margin-inline-start: auto;
    color: rgba(226, 241, 255, 0.32);
    font-size: 10px;
}

/* ==========================================================================
   7. SEQUENCED ENTRANCE ANIMATIONS
   ========================================================================== */
.hero-anim-1 { animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both; }
.hero-anim-2 { animation: heroFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both; }
.hero-anim-3 { animation: heroFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both; }
.hero-anim-4 { animation: heroFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both; }
.hero-anim-5 { animation: heroFadeIn 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.40s both; }
.hero-anim-6 { animation: heroFadeIn 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.48s both; }

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS & VIEWPORT FIT
   ========================================================================== */
/* Compact Desktop Height Optimizations (1366x768, 1280x800) */
@media (max-height: 820px) and (min-width: 992px) {
    .hero.cinematic-hero {
        padding-top: 86px !important;
        padding-bottom: 16px !important;
    }

    body.landing .hero.cinematic-hero .hero-title {
        font-size: clamp(34px, 3.6vw, 50px) !important;
    }

    .hero-content-col {
        gap: 10px !important;
    }

    body.landing .hero.cinematic-hero .hero-desc {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }

    .hero-market-panel {
        padding: 8px 12px !important;
        gap: 6px !important;
    }

    .ticker-price {
        font-size: 17px !important;
    }
}

/* Medium Screens & Tablets (<= 1050px) */
@media (max-width: 1050px) {
    body.landing .topbar {
        display: flex !important;
        justify-content: space-between !important;
    }

    body.landing .topbar .landing-nav {
        display: none !important;
    }

    body.landing .topbar .top-actions {
        margin-inline-start: auto !important;
    }

    body.landing .topbar details.landing-menu {
        display: block !important;
    }

    body.landing .topbar details.landing-menu summary {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 6px !important;
        background: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        color: rgba(226, 241, 255, 0.8) !important;
        cursor: pointer !important;
        list-style: none !important;
    }

    body.landing .topbar details.landing-menu summary::-webkit-details-marker {
        display: none !important;
    }
}

/* Tablet Viewport (<= 991px) */
@media (max-width: 991px) {
    body.landing .topbar {
        position: absolute !important;
    }

    .hero.cinematic-hero {
        height: auto !important;
        min-height: 100svh !important;
        padding-top: 96px !important;
        padding-bottom: 24px !important;
        gap: 20px !important;
    }

    .cinematic-overlay-left {
        background: linear-gradient(90deg,
            #020811 0%,
            rgba(2, 8, 17, 0.95) 30%,
            rgba(2, 8, 17, 0.75) 55%,
            rgba(2, 8, 17, 0.3) 75%,
            transparent 90%
        ) !important;
    }

    .hero-stage {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .cinematic-video.video-buffer {
        object-position: 70% center !important;
    }

    .hero-content-col {
        max-width: 100% !important;
    }

    .hero-market-panel {
        max-width: 440px !important;
    }
}

/* Mobile Viewport (<= 640px) */
@media (max-width: 640px) {
    body.landing .topbar .get-started {
        display: none !important;
    }

    body.landing .topbar .login-link {
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
    }

    body.landing .topbar .icon-btn[data-language-toggle] {
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 8px !important;
        font-size: 11px !important;
    }

    .hero.cinematic-hero {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 88px !important;
        padding-bottom: 24px !important;
        justify-content: flex-start !important;
        gap: 16px !important;
    }

    /* Ambient mobile gradient overlay: protects text without crushing the whale */
    .cinematic-overlay-left {
        background: linear-gradient(180deg,
            rgba(2, 8, 17, 0.82) 0%,
            rgba(2, 8, 17, 0.58) 35%,
            rgba(2, 8, 17, 0.25) 70%,
            rgba(2, 8, 17, 0.8) 100%
        ) !important;
    }

    .cinematic-video.video-buffer {
        object-position: 60% center !important;
    }

    body.landing .hero.cinematic-hero .hero-title {
        font-size: clamp(32px, 8.5vw, 38px) !important;
        line-height: 1.1 !important;
    }

    body.landing .hero.cinematic-hero .hero-desc {
        font-size: 13.5px !important;
        line-height: 1.6 !important;
        max-width: 100% !important;
    }

    .hero-actions {
        flex-direction: row !important;
        align-items: center !important;
        gap: 14px !important;
        margin-top: 2px !important;
        margin-bottom: 6px !important;
    }

    .hero-btn-primary {
        height: 44px !important;
        padding: 0 18px !important;
        font-size: 12px !important;
        min-width: 135px !important;
    }

    .hero-btn-secondary {
        font-size: 12px !important;
    }

    /* Compact Market Panel for Mobile */
    .hero-market-panel {
        max-width: 100% !important;
        padding: 8px 12px !important;
        gap: 6px !important;
    }

    .ticker-price {
        font-size: 17px !important;
    }

    /* Hide non-essential telemetry on mobile (keep primary liquidity + risk) */
    .telemetry-item:nth-child(3),
    .telemetry-item:nth-child(5) {
        display: none !important;
    }

    .telemetry-sep:nth-child(2),
    .telemetry-sep:nth-child(4) {
        display: none !important;
    }

    /* Hide capability rail on mobile for maximum breathing room */
    .hero-bottom-rail {
        display: none !important;
    }
}

/* ==========================================================================
   9. ACCESSIBILITY: REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .hero-anim-1, .hero-anim-2, .hero-anim-3,
    .hero-anim-4, .hero-anim-5, .hero-anim-6 {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .cinematic-video.video-buffer {
        transition: none !important;
    }
}
